package com.xiyoukt.springboot.config;

import com.xiyoukt.springboot.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
public class PersonConfig {

    @Bean
    public Person person(){
        List<String> hobbys = new ArrayList<>();
        hobbys.add("game");
        hobbys.add("java");
        hobbys.add("movie");
        Person person = new Person("张三", 0, 180.5F, hobbys);
        return person;
    }

}
